#!/bin/bash

for i in *.cpp;
do
	file=${i%.*}
	echo "gcc -I.. -L.. -shared -rdynamic -Wl,-soname,$file -o $file.so $i"
	cc -I.. -L.. -fPIC -shared -rdynamic -Wl,-soname,$file -o $file.so $i
done
